<%@ page language="java" pageEncoding="UTF-8"
	errorPage="../../defaultException.jsp"%>
<%@include file="../../tags.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>更新新闻信息</title>
<%@include file="../../head.jsp"%>
</head>
<body>
	<form id="fm" method="post" enctype="multipart/form-data">

		<table class="fitem">
			<tr>
				<td><label>行程目的地地点名称:</label></td>
				<td><input class="easyui-validatebox" name="name"
					value="${tripLocation.name }"
					data-options="required:true,validType:'length[0,64]'" /></td>
			</tr>
			<tr>
				<td><label>归属目的地：</label></td>
				<td><input id="destInfo" name="tripdestId"> </td>
			</tr>
			<tr>
				<td><label>纬度:</label></td>
				<td><input  name="lat" value="${tripLocation.lat }"
					 class="easyui-validatebox"
					validType="numberbox" />
				</td>
			</tr>
			
			<tr>
				<td><label>经度:</label></td>
				<td><input name="lng" value="${tripLocation.lng }"
					 class="easyui-validatebox"
					validType="numberbox" ></td>
			</tr>
			<tr>
				<td><label>停留时间:</label></td>
				<td><input  name="stayTime" value="${tripLocation.stayTime }"
					 class="easyui-validatebox"
					validType="numberbox" data-options="required:true"/>
				</td>
			</tr>
			<tr>
				<td><label>状态:</label></td>
				<td>
					<select name="status">
						<option value="0" <c:if test="${tripLocation.status eq 0 }">selected="selected"</c:if>>未审核</option>
						<option value="1" <c:if test="${tripLocation.status eq 1 }">selected="selected"</c:if>>已审核</option>
					</select>
					</td>
			</tr>
			<tr>
				<td><label>新图片：</label></td>
				<td><input type="file" name="mfile"></td>
			</tr>
			<tr>
				<td><label>摘要:</label></td>
				<td><textarea name="summary" id="summary"
						data-options="validType:'length[0,128]'"
						class="easyui-validatebox" style="width: 392px; height: 80px"
						>${tripLocation.summary }</textarea></td>
			</tr>
			<tr>
				<td><label>内容:</label></td>
				<td><textarea name="content" id="content"
						data-options="validType:'length[0,1024]'"
						class="easyui-validatebox" style="width: 392px; height: 80px"
						>${tripLocation.content }</textarea></td>
			</tr>
			<tr>
				<td><label>旧图片:</label>
				</td>
				<td><img src="${image_domain}${tripLocation.image}"
					width=200px height=160px> 
					<input type="hidden"
					value="${tripLocation.image }" name="image"></td>
			</tr>
			<input type="hidden" value="${tripLocation.locationId }" name="locationId">
		</table>
	</form>
	<script>
		
		$('#content').ceditor();
		$('#summary').ceditor();
		//初始化国家列表
		$('#destInfo').combobox({
			url : '${cpath }/admin/trip/tripdests',
			valueField : 'tripdestId',
			textField : 'name',
			value : '${tripLocation.tripdestId}',
			editable : false
		});
	</script>
<style type="text/css">
#fm {
	margin: 0;
	padding: 40px 40px;
}

.ftitle {
	font-size: 14px;
	font-weight: bold;
	padding: 5px 0;
	margin-bottom: 10px;
	border-bottom: 1px solid #ccc;
}

.fitem {
	margin-bottom: 5px;
}

.fitem label {
	display: inline-block;
	width: 90px;
}
</style>
</body>
</html>